
#ifndef	__RTC_H
#define	__RTC_H
#include "NVIC.h"
#include "GPIO.h"
#include "UART.h"
#include "Delay.h"
#include "Switch.h"
#include "I2C.h"
#include "Config.h"
#include "Exti.h"
typedef struct {
    u8 second,minute,hour,month,week,day;
    u16 year;
} RTC_Time;

void init();

void RTC_Write(RTC_Time *time);
void RTC_Read(RTC_Time *time);
void Set_Rtc_Alarm();
void Set_Rtc_Timer();
#endif
